package com.cheetah.start.module.system.service.impl;


import com.cheetah.start.module.system.domain.SysDictData;
import com.cheetah.start.module.system.service.SysDictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * dict
 *
 * @author xjh
 * @date 2021/11/17
 */
@Service("dict")
public class DictService {
    @Autowired
    private SysDictDataService sysDictDataService;


    /**
     * @param code 代码
     * @return {@link List}<{@link SysDictData}>
     */
    public List<SysDictData> getDict(String code) {
        return sysDictDataService.getByDictCode(code);
    }
}
